<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Admin\Model;
use Think\Model\ViewModel;


/**
 * Description of StaffinfoModel
 *
 * @author motsqueen
 */
class StaffinfoViewModel extends ViewModel {
    
    protected $tableName = "staffinfo";
    public $viewFields = array(
    	'Staffinfo' => array('id','sid','name','sex','did','role','status'),
    	'Depinfo' => array('name'=>'dep_name', '_on' => 'Staffinfo.did=Depinfo.did'),
    ); 
    
    
    
}
